package com.example.controller.buyer;

import com.example.entity.OrderReturnReason;
import com.example.service.OrderReturnReasonService;
import com.example.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author circle48
 */
@RestController
@Api(tags = "买家端,订单退款原因接口")
@RequestMapping("/buyer/order/refund/reason")
public class OrderReturnReasonController {

    @Resource
    private OrderReturnReasonService orderReturnReasonService;

    @ApiOperation(value = "查询退款原因")
    @GetMapping()
    public Result createReturnApply() {
        List<OrderReturnReason> reasons = orderReturnReasonService.list();
        return Result.ok(reasons);

    }

}
